package models;

import javax.persistence.Entity;

import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class User extends Model{
	
	@play.data.validation.Email
	@Required
	public String email;
	
	@Required
	public String name;
	
	@Required
	public String password;
	
	public boolean askpermission;
	
	public User(String email,String name,String password,boolean askpermission){
		this.email=email;
		this.name=name;
		this.password=password;
		this.askpermission=askpermission;
		
	}
}
